package top.fwpsl.jvm.entry.reflectionutil;


import java.io.Serializable;
import java.util.List;

/**
 * @author: 风戏fw
 * @date: 2022/8/18
 * @description:
 */
@MyAnnotation("BeanChild1")
public class BeanChild1 extends Bean implements Serializable, MyInterface {

    public static final String ss = "";

    @MyFieldAnnotation("description")
    private String description;

    private Integer age;

    private List<String> aa;
    private List<Integer> bb;

    public BeanChild1() {
    }

    public BeanChild1(String description) {
        this.description = description;
    }

    public BeanChild1(String description, Integer age) {
        this.description = description;
        this.age = age;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @MyMethodAnnotation("getAge")
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public List<String> getAa() {
        return aa;
    }

    public void setAa(List<String> aa) {
        this.aa = aa;
    }

    public List<Integer> getBb() {
        return bb;
    }

    public void setBb(List<Integer> bb) {
        this.bb = bb;
    }

    public static BeanChild1 newInstance(@MyParameterAnnotation("description") String description,
                                  @MyParameterAnnotation("age") @MyParameterAnnotation2 Integer age) {
        return new BeanChild1(description, age);
    }
}
